﻿using Microsoft.AspNetCore.Mvc;

namespace Simple.WebAi.Authorizes
{
    /// <summary>
    /// 账号授权
    /// </summary>
    public class AccountAuthorizeAttribute : TypeFilterAttribute
    {
        /// <summary>
        /// 权限
        /// </summary>
        public readonly string[] Permissions;

        /// <summary>
        /// 权限
        /// </summary>
        /// <param name="Permissions"></param>
        public AccountAuthorizeAttribute(params string[] Permissions) : base(typeof(AccountAuthorizeFilter))
        {
            this.Permissions = Permissions;
        }
    }
}
